package streamingStudy.streamingCase

import java.io.InputStreamReader
import java.util.Properties

/**
 * 工具类
 */
object PropertiesUtil {

  def load(propertitiesName: String): Properties = {

    val prpo = new Properties()
    prpo.load(
      new InputStreamReader(
        Thread.currentThread().getContextClassLoader.getResourceAsStream(propertitiesName),
        "UTF-8"
      )
    )
    prpo
  }

}
